<style type="text/css">
@Media(max-width:768px){
	#merchant_perm_treetable th{
		display:none;
	}
	#merchant_perm_treetable th:nth-child(4){
		display:table-cell;
	}
	#merchant_perm_treetable th:nth-child(13){
		display:table-cell;
	}
	#merchant_perm_treetable td{
		display:none;
	}
	#merchant_perm_treetable td:nth-child(4){
		display:table-cell;
	}
	#merchant_perm_treetable td:nth-child(13){
		display:table-cell;
	}
	#merchant_perm_treetable thead{
		display:none;
	}
}
</style>
<div class="page-bar">
	<ul class="page-breadcrumb">
		<li><span>管理子系统</span> <i class="fa fa-angle-right"></i></li>
		<li><span>资源管理</span></li>
	</ul>
</div>
<!-- http://mutongwu.iteye.com/blog/2204192 -->
<div class="content" id="merchant_perm_content">
	<div class="row">
		<div class="col-xs-12 form-inline">
			<div class="pull-left">
				<!-- 添加按钮 -->
				<button class="btn btn-sm btn-success" type="button" onclick="merchant_perm_add_primary()">
					<i aria-hidden="true" class="fa fa-plus"></i>添加
				</button>
				<!-- 批量删除按钮 -->
				<button class="btn btn-sm btn-success" type="button" onclick="merchant_perm_batch_delete()">
					<i aria-hidden="true" class="fa fa-trash"></i>删除
				</button>
				<!-- 展开所有按钮 -->
				<button class="btn btn-success btn-sm" type="button" onclick="merchant_perm_expand_all(this)">
					<i aria-hidden="true" class="fa fa-plus-square"></i>全部展开
				</button>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-xs-12">
			<table id="merchant_perm_treetable"></table>
		</div>
	</div>
</div>
<div class="clearfix"></div>
<script type="text/javascript">
	require(["./static/pages/scripts/system/merchant/perm"], function(perm){
		perm.initPage();
	});
</script>